

package com.hazelcast.spi.exception;

import com.hazelcast.cluster.Address;

/**
 * A {@link RetryableHazelcastException} that indicates that an operation was sent by a machine which isn't member
 * in the cluster when the operation is executed.
 */
public class CallerNotMemberException extends RetryableHazelcastException {

    public CallerNotMemberException(Address thisAddress, Address caller, int partitionId, String operationName, String serviceName) {
        super("Not Member! this: " + thisAddress + ", caller: " + caller + ", partitionId: " + partitionId + ", operation: " + operationName + ", service: " + serviceName);
    }

    public CallerNotMemberException(String message) {
        super(message);
    }
}
